//
//  LTView.m
//  碟片
//
//  Created by lmt on 15/12/12.
//  Copyright (c) 2015年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "LTView.h"

@implementation LTView


- (void)dealloc
{
    [_but1 release];
    [_but2 release];
    [_label1 release];
    [_label2 release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self muic];
    }
    return self;
}

- (void)muic
{
    self.but1 = [UIButton buttonWithType:UIButtonTypeSystem];
    self.but1.frame = CGRectMake(10, 10, 40, 40);
    [self.but1 setBackgroundImage:[UIImage imageNamed:@"8.png"] forState:UIControlStateNormal];
    [self addSubview:self.but1];
    
    self.but2 = [UIButton buttonWithType:UIButtonTypeSystem];
    self.but2.frame = CGRectMake(self.frame.size.width - 50, 10, 40, 40);
    [self.but2 setBackgroundImage:[UIImage imageNamed:@"7.png"] forState:UIControlStateNormal];
    [self addSubview:self.but2];
    
    
    
    self.label1 = [[UILabel alloc]initWithFrame:CGRectMake(70, 5, self.frame.size.width - 140, 30)];
    self.label1.textColor = [UIColor whiteColor];
    self.label1.textAlignment = NSTextAlignmentCenter;
    //    self.label1.backgroundColor = [UIColor redColor];
    [self addSubview:self.label1];
    [_label1 release];
    
    
    self.label2 = [[UILabel alloc]initWithFrame:CGRectMake(70, 35, self.frame.size.width - 140, 20)];
    self.label2.textColor = [UIColor whiteColor];
    self.label2.textAlignment = NSTextAlignmentCenter;
    //    self.label2.backgroundColor = [UIColor redColor];
    [self addSubview:self.label2];
    [_label2 release];
    
}






/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
